package com.shijie.feign.fallback;

import com.shijie.feign.PoolFeign;
import com.shijie.result.SjResult;
import com.shijie.vo.JudgePoolVO;
import com.shijie.vo.PoolVO;
import org.springframework.stereotype.Component;

@Component
public class PoolFallback implements PoolFeign {

    @Override
    public SjResult<PoolVO> getByPoolId(Long poolId) {
        return SjResult.error("题库服务器错误");
    }

    @Override
    public SjResult<JudgePoolVO> getJudgeRequire(Long poolId) {
        return SjResult.error("题库服务器错误");
    }
}
